//
//  ViewController.swift
//  NHT_SelectDateView
//
//  Created by nhtemail@163.com on 07/04/2023.
//  Copyright (c) 2023 nhtemail@163.com. All rights reserved.
//

import UIKit
import NHT_SelectDateView

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.red
     
        
        

        
        let dateView = NHT_SelectDateView.init();
        dateView.frame = CGRect(x: 0, y: 100, width: self.view.frame.size.width, height: 400);
        self.view.addSubview(dateView);

        dateView.max_Time_Str = "2023-11-11 12:12:12";//可配置选择最大日期
        dateView.min_Time_Str = "2011-11-11 11:11:11";//可配置选择最小日期
        dateView.textFont_Selected = UIFont.systemFont(ofSize: 20);//选中文字字体
        dateView.textColor_Selected = UIColor.blue;//选中文字颜色
        dateView.createDatePick(dateMode: .YearMonthDayHourMinuteSecond)//创建选择器
        dateView.resetMidView = {midView in
            //配置中间选中view 可不实现
            midView.backgroundColor = UIColor.yellow.withAlphaComponent(0.3)
        };
        dateView.selectTimeBlock = {timeStr in
            //选择之后的回调
            print("timeStr:",timeStr)
        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

